<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont header-back">&#xe624;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      请输入搜索的内容
    </div>
    <router-link to="/city">
    <div class="header-right ">
      <span class="iconfont">&#xe668;</span>
      {{city}}
    </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .header
    height: .86rem
    display: flex
    background: $bgColor
    color: #fff
    line-height .86rem
  .header-left
    float: left
    width: .64rem
    .header-back
        text-align: center
        font-size: .4rem
  .header-input
    flex: 1
    background: #fff
    border-radius: .1rem
    margin-top: .12rem
    margin-left: .2rem
    padding-left: .2rem
    line-height: .64rem
    height: .64rem
    color: #ccc
  .header-right
    float: right
    width: 1.04rem
    text-align: center
    padding: 0 .1rem
    color: #fff
</style>
